package com.ebt.m.apps;

import android.content.Context;
import android.util.AttributeSet;

import com.ebt.m.R;
import com.ebt.m.commons.buscomponent.listview.IView;
import com.ebt.m.widget.SubTitleView;

/**
 * Created by Damon on 2017/10/26.
 */

public class AppsViewTitle extends IView {
    SubTitleView titleView;

    public AppsViewTitle(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        inflate(context, R.layout.frg_apps_title, this);
        titleView = (SubTitleView) findViewById(R.id.title);

    }

    public AppsViewTitle(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public AppsViewTitle(Context context) {
        this(context, null);
    }

    @Override
    public void update(Object... args) {
        String title = (String) args[0];
        titleView.setmTitleString(title);

    }
}
